package org.esprit.ocm.server.service.impl;

import org.esprit.ocm.client.rpc.AwsCredentialsService;
import org.esprit.ocm.dto.impl.AwsCredentialsDto;
import org.esprit.ocm.dto.impl.ServerDto;
import org.esprit.ocm.server.dao.AwsCredentialsDao;
import org.esprit.ocm.server.metier.common.ICommonService;
import org.esprit.ocm.server.metier.common.impl.ServiceImpl;

@SuppressWarnings("unchecked")
public class AwsCredentialsServiceImpl extends ServiceImpl<AwsCredentialsDto> implements AwsCredentialsService, ICommonService<AwsCredentialsDto>{

	private AwsCredentialsDao credential;

	public AwsCredentialsDao getCredential() {
		return credential;
	}

	public void setCredential(AwsCredentialsDao credential) {
		this.credential = credential;
	}
	
	public AwsCredentialsDto findCredentialByServer(ServerDto _o) {
		return credential.findCredentialByServer(_o);
	}
}
